package cn.wolfcode.edu.web.controller;

import cn.wolfcode.edu.query.QueryObject;
import cn.wolfcode.edu.service.IRoleService;
import cn.wolfcode.edu.service.ISystemLogService;
import cn.wolfcode.edu.util.PageResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by abb on 2018-07-09.
 */
@Controller
@RequestMapping("systemlog")
public class SystemLogController {
    @Autowired
    private ISystemLogService systemLogService;

    //定位 角色页面
    @RequestMapping("")
    public String index() {
        return "systemlog";
    }

    //角色数据列表
    @RequestMapping("list")
    @ResponseBody
    public PageResult list(QueryObject qo) {
        return systemLogService.query(qo);
    }


}
